package main.java.game.command;

import main.java.game.Battle;
import main.java.game.item.potion.Potion;

/**
 * @author  ILDiNHo
 */
public class UsePotion implements BattleCommand {
	/**
	 * @uml.property  name="battle"
	 * @uml.associationEnd  
	 */
	private Battle battle;
	/**
	 * @uml.property  name="potion"
	 * @uml.associationEnd  
	 */
	private Potion potion;
	
	public UsePotion(Battle battle, Potion potion){
		this.battle=battle;
		this.potion=potion;
	}	
	public void execute() {
		potion.use(battle.getHero());
	}
	public Battle getAssociatedBattle(){
		return battle;
	}
}
